package com.jackstraw.jack_base.datasource.common.factory;

import com.jackstraw.jack_base.datasource.common.entity.AbstractPropertiesEntity;
import com.jackstraw.jack_base.datasource.common.entity.AbstractTemplate;


/**
 * 工厂类,构建对外提供服务的类
 *
 * @param <T>  对外提供服务的类
 * @param <PE> 配置类
 */
public interface DataSourceBuildFactory<T extends AbstractTemplate<T, PE>, PE extends AbstractPropertiesEntity<PE>> {

    T build(String tenantName, String dataSourceName, PE propertiesEntity);

}
